<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'index' => 4,
        'css' => [
            'assets/wx/css/center.css',
        ]
    ]);
?>

<body class="order" ng-controller="wx-center-index-controller">

<section class="aui-content" style="padding-bottom: 60px;">

    <!--顶部区域-->
    <div class="aui-card-list aui-margin-b-5">
        <div class="aui-card-list-content gu-center-bg banner-box">
            <div class="gu-edit" ng-show="false">
                <i class="aui-iconfont aui-icon-edit"></i>
            </div>
            <div class="aui-list-item-media aui-padded-t-15 head-box" style="margin: 0 auto; width: 3rem;">
                <img ng-src="{{ userInfo.headimgurl }}" style="padding:2px; background:#fff;" class="aui-img-round aui-list-img-sm">
                <!--
                -->
            </div>
            <div class="aui-text-center aui-padded-t-5 aui-padded-b-15">
                <h3 class="gu-nickname" ng-bind="userInfo.nickname"></h3>
            </div>

            <span class="cai" ng-show="userInfo.userType == 1"></span>

        </div>
    </div>

    <div class="aui-grid gu-center-money aui-margin-b-5 aui-border-b aui-border-t">
        <div class="aui-row">
            <div class="aui-col-xs-3 gu-money-block">
                <a href="/center/cash">
                    <strong ng-bind="summary.amount_format" style="color: red;"></strong>
                    <div class="aui-grid-label">账户余额</div>
                </a>
            </div>
            <div class="aui-col-xs-3 gu-money-block">
                <a href="/center/ticket">
                    <strong ng-bind="summary.ticket">0</strong>
                    <div class="aui-grid-label">优惠券</div>
                </a>
            </div>
            <div class="aui-col-xs-3 gu-money-block gu-center-split-bar">
                <a href="/center/integral">
                    <strong ng-bind="summary.score"></strong>
                    <div class="aui-grid-label">积分</div>
                </a>
            </div>
            <div class="aui-col-xs-3 gu-money-block">
                <a href="/center/cash" class="aui-list-item-arrow">
                    <div class="gu-link-money aui-grid-label aui-text-right" style="padding-right: 25px;">我的钱包</div>
                </a>
            </div>
        </div>
    </div>

    <div class="aui-content aui-margin-b-5">
        <!--
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-usercenter gu-list-item">
                <a href="/center/memberCenter" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">会员中心</div>
                </a>
            </li>
            <li class="aui-list-item gu-salecenter aui-list-item-middle gu-list-item">
                <a href="/center/saleCenter" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">销售中心</div>
                </a>
            </li>
        </ul>
        -->
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-salecenter gu-list-item">
                <a href="/center/fans" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">我的推广</div>
                </a>
            </li>
            <li class="aui-list-item gu-qrcode aui-list-item-middle gu-list-item">
                <a href="/center/bill" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">销售二维码</div>
                </a>
            </li>
        </ul>
    </div>

    <div class="aui-content aui-margin-b-5">
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-mycollect gu-list-item">
                <a href="/center/collectList" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">我的收藏</div>
                </a>
            </li>
        </ul>
    </div>

    <div class="aui-content aui-margin-b-5">
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-address gu-list-item" ng-click="showBill()">
                <a href="/address" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">收货地址管理</div>
                </a>
            </li>
            <li class="aui-list-item gu-account aui-list-item-middle gu-list-item">
                <a href="/center/accountIndex" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">账号管理</div>
                </a>
            </li>
        </ul>
    </div>

    <div class="aui-content aui-margin-b-5">
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-caigoushang gu-list-item">
                <a href="/center/caigouApply" class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">成为采购商</div>
                </a>
            </li>
        </ul>
    </div>
</section>

<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'assets/wx/js/center/index.js'
        ]
    ]);
?>

